<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/page/share/taglib.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
<title>提交基础测试</title>
</head>
<body>
	<div class="rrcc" id="RightBox">
		<div class="center" id="Mobile" onClick="show_menuC()"></div>
		<div class="right" id="li010">
			<div style="width:93%;margin: 0 auto;padding: 20px 0px;">
				<script type="text/javascript">
					function dosubmit() {
						var span = document.getElementById("s1");
						var filename = document.form.baseTest.value;
						if (filename == "") {
							span.innerHTML = "请提交您的测试题";
							return false;
						}
						var ext1 = ".zip";
						var ext2 = ".rar";
						var ext3 = ".doc";
						if (filename.substring(filename.length - ext1.length) != ext1 && filename.substring(filename.length - ext2.length) != ext2 && filename.substring(filename.length - ext3.length) != ext3) {
							span.innerHTML = "只接收rar或zip格式的文件";
							return false;
						}
						return true;
					}
					function formSubmit() {
						var form = document.forms[0];
						form.submit();
					}
				</script>
				<style type="text/css">
.a a {
	text-decoration: underline;
	color: blue;
	margin-right: 30px
}
</style>
				<s:form name="form" action="/customer/process/doSubmitTest.do"
					method="post" enctype="multipart/form-data" onSubmit="">
					<table>
						<tr>
							<td width="100px" align="right" height="40px">基础测试题：</td>
							<td><span class="a"> <a
									href="/customer/process/wordDownload.do?method=downBaseTest">下载基础测试题</a>
							</span> <span class="a"> 测试题编写要求： <a href="/doc/exam.doc">下载java测试格式要求文档</a>
									<a href="/doc/netexam.doc">下载net测试格式要求文档</a> </span>
							</td>
						</tr>
						<tr>
							<td width="100px" align="right" height="40px">提交基础测试：</td>
							<td>
							<s:file name="file"  onFocus="document.getElementById('s1').innerHTML=''"/>
							<span
								id="s1" style="color: red;padding-left: 10px;"></span>
							</td>
						</tr>
						<tr>
							<td width="100px" align="right" height="40px">留言：</td>
							<td><textarea rows="6" cols="50" name="message"></textarea><br />
							</td>
						</tr>
						<tr>
							<td colspan="2" height="80px;">
								<div
									style="background:url('${pageContext.request.contextPath}/images/customer/pic_button01.gif') no-repeat left top;width:110px; height:42px; padding-left:10px;">
									<a href="javascript:formSubmit();" hidefocus="true"
										style="outline:0 none; border:0 none; background:url('${pageContext.request.contextPath}/images/customer/pic_button01.gif') no-repeat right top;width:120px; height:42px;font-size:20px;color:#FFF;font-weight: bold;cursor:hand">
										提交</a>
								</div>
							</td>
						</tr>
					</table>
				</s:form>
				<br /> <br />
				<div style="line-height: 30px;">
					说明：<br />
					1、测试题是从题库中随机抽取10道题。基础测试的目标是检测您的基础情况，您能完成几道就做几道，老师会根据您的完成情况给出学习建议。<br />
					2、<span style="color: red;font-weight: bold;">每个人只可下载一次测试题</span>，请点击下载后务必保存好您的测试题。如出现异常情况，请联系网站客服。<br />
					3、基础测试题请使用eclipse编写，并认真参看说明文档，写完后请打包成zip、RAR格式提交。注意，打包后的文件大小不能超过5m。<br />
				</div>

			</div>
		</div>
	</div>
</body>
</html>

